package com.erdos.core.service;

import com.erdos.common.service.BaseService;
import com.erdos.core.entity.FieldDefinition;
 
public interface FieldDefinitionService extends BaseService<FieldDefinition> {
	
	/**
	 * 验证指定的field id在数据库中是否已经存在
	 * @param fielded
	 * @author wangsw
	 * @since 20080717
	 */
	public boolean checkFieldIdExit(String fieldId);
	
	/**
	 * 修改Field引用时调用，看修改后的Field定义是否可以兼容修改前的Field
	 * @param oldFieldSid
	 * @param newFieldSid
	 * @author wangsw
	 * @since 20080717
	 */
	public boolean  isCompatible (Long oldFieldSid,Long newFieldSid);

}
